package com.star.security.filter;

import com.star.security.exception.AuthenticationException;
import org.springframework.web.method.HandlerMethod;

/**
 * 访问认证-校验是否有权限
 *
 * @author yangzj
 */
public interface AccessChecker {

    /**
     * 判断是否有权限
     *
     * @param handlerMethod handler方法
     * @return boolean
     * @throws AuthenticationException 身份验证异常
     */
    boolean check(HandlerMethod handlerMethod) throws AuthenticationException;
}
